import Vue from 'vue'
import Vuex from 'vuex'
import createLoadingPlugin from './utils/loading'
import app from './modules/app'
import user from './modules/user'
import tagsView from './modules/tagsView'
import permission from './modules/permission'
import settings from './modules/settings'
import formBtn from './modules/formBtn'
import dbAbout from './modules/dbAbout'
import getters from './getters'
import indicatorUser from '@/api/deal/indicator/email/dealIndicatorEmail'
import bussRisk from '@/store/modules/bussRisk'
import mediation from '@/store/modules/mediation'
import SimpleMindMap from './modules/SimpleMindMap'
import marketApp from '@/store/modules/marketApp'
import finReport from './modules/finReport'

Vue.use(Vuex)

const store = new Vuex.Store({
  plugins: [createLoadingPlugin()],
  modules: {
    app,
    user,
    tagsView,
    permission,
    settings,
    formBtn,
    dbAbout,
    indicatorUser,
    bussRisk,
    mediation,
    SimpleMindMap,
    marketApp,
    finReport
  },
  getters
})

export default store
